<!DOCTYPE html>
<html lang="en">
    <head>
    <meta charset="utf-8">
    <title><?php echo $title_for_layout?></title>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <link href="/css/other.css" rel="stylesheet">
	<script type="text/javascript" src="/js/jquery-1.6.4.min.js"></script>
    <script type="text/javascript" src="/js/bootstrap-dropdown.js"></script>
    <style type="text/css">
    body { padding-top: 60px; }
    </style>
    </head>
<body>

<div class="topbar-wrapper">
   <div id="topbar" class="topbar">
      <div class="topbar-inner">

        <div class="container">
          <h3><a class="brand" href="#">TUIHE</a></h3>
          <ul class="nav">
            <li class="active"><a href="/">首页</a></li>
            <li class="dropdown">
                <a href="/products/">我们的产品</a>
                <ul class="dropdown-menu">
                    <li><a href="/pages/tuizhi/">推职</a></li>
                    <li class="divider"></li>
                    <li><a href="/jobsearch/">职位搜索</a></li>
                </ul>
            </li>
            <li><a href="#about">关于</a></li>
            <li><a href="#contact">联系我们</a></li>
<?php
if ($this->Session->read('Auth.User')) {
    echo "<li><a href='/users/me/'>". $this->Session->read('Auth.User.email') ."</a></li>";
    echo "<li><a href='/users/logout/'>退出登录</a></li>";
}
?>
          </ul>
        </div>

      </div>
    </div>
</div>
<script type="text/javascript">$('#topbar').dropdown();</script>

    <div class="container">
		<?php echo $content_for_layout ?>

      <footer>
        <p>&copy; tuihe.com 2011</p>
      </footer>

    </div> <!-- /container -->

</body>
</html>
